package com.time.client.domain.converter;

import com.time.client.domain.entity.CategoryBO;
import com.time.client.infra.basic.entity.Category;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 文章分类BO转换器类
 *
 * @author: HuangQi
 * @date: Created in 11:28 2025/10/9
 * @description: 文章分类BO转换器
 */
@Mapper
public interface CategoryBOConverter {

    CategoryBOConverter INSTANCE = Mappers.getMapper(CategoryBOConverter.class);

    Category convertBOToEntity(CategoryBO categoriesBO);

    CategoryBO convertEntityToBO(Category category);

    List<CategoryBO> convertEntityListToBO(List<Category> categoryList);
}
